package com.AJava1710D.设计模式.策略模式2;

import org.springframework.beans.factory.InitializingBean;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/3/1  18:26
 * 描述:
 */
public class FangShi1 implements FangShiInterface,InitializingBean {



    @Override
    public String celue() {
        System.out.println("======策略01=====");
        return "策略01";
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        FangshiFactory.register("1",this);
    }

}
